﻿using SIG.Data;
using SIG.Data.UnitOfWork;
using SIG.Infrastructure.Cache;
using System;
using SIG.Model.Emails;

namespace SIG.Repository
{
    public class EmailRepository : Repository<Email>, IEmailRepository
    {
        IMainBCUnitOfWork _unitOfWork;
        private ICacheService _cacheService;
        public EmailRepository(IMainBCUnitOfWork unitOfWork, ICacheService cacheService) : base(unitOfWork) {

            if (unitOfWork == (IMainBCUnitOfWork)null)
                throw new ArgumentNullException("unitOfWork");
            if (cacheService == (ICacheService)null)
                throw new ArgumentNullException("cacheService");

            this._unitOfWork = unitOfWork;
            this._cacheService = cacheService;
        }

      
    }
}
